GDK_AVAILABLE_IN_ALL
GtkWidget* gtk_menu_new_from_model (GMenuModel *model);
-/* Display the menu onscreen */
GDK_AVAILABLE_IN_ALL
void gtk_menu_popup_at_rect (GtkMenu *menu,
GdkSurface *rect_surface,
void gtk_menu_popup_at_pointer (GtkMenu *menu,
const GdkEvent *trigger_event);
-/* Position the menu according to its position function. Called
- * from gtkmenuitem.c when a menu-item changes its allocation
- */
GDK_AVAILABLE_IN_ALL
void gtk_menu_reposition (GtkMenu *menu);
GDK_AVAILABLE_IN_ALL
void gtk_menu_popdown (GtkMenu *menu);
-/* Keep track of the last menu item selected. (For the purposes
- * of the option menu
- */
GDK_AVAILABLE_IN_ALL
GtkWidget* gtk_menu_get_active (GtkMenu *menu);
GDK_AVAILABLE_IN_ALL
void gtk_menu_set_active (GtkMenu *menu,
guint index);
-/* set/get the accelerator group that holds global accelerators (should
- * be added to the corresponding toplevel with gtk_window_add_accel_group().
- */
GDK_AVAILABLE_IN_ALL
void gtk_menu_set_accel_group (GtkMenu *menu,
GtkAccelGroup *accel_group);
GDK_AVAILABLE_IN_ALL
const gchar* gtk_menu_get_accel_path (GtkMenu *menu);
-/* A reference count is kept for a widget when it is attached to
- * a particular widget. This is typically a menu item; it may also
- * be a widget with a popup menu - for instance, the Notebook widget.
- */
GDK_AVAILABLE_IN_ALL
void gtk_menu_attach_to_widget (GtkMenu *menu,
GtkWidget *attach_widget,
GDK_AVAILABLE_IN_ALL
void gtk_menu_detach (GtkMenu *menu);
-/* This should be dumped in favor of data set when the menu is popped
- * up - that is currently in the ItemFactory code, but should be
- * in the Menu code.
- */
GDK_AVAILABLE_IN_ALL
GtkWidget* gtk_menu_get_attach_widget (GtkMenu *menu);